Optimal. Leaf size=22 \[ \log (x) (-a-b x)^{-n} (a+b x)^n \]
________________________________________________________________________________________
Rubi [A] time = 0.00, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {23, 29} \begin {gather*} \log (x) (-a-b x)^{-n} (a+b x)^n \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 29
Rubi steps
\begin {align*} \int \frac {(-a-b x)^{-n} (a+b x)^n}{x} \, dx &=\left ((-a-b x)^{-n} (a+b x)^n\right ) \int \frac {1}{x} \, dx\\ &=(-a-b x)^{-n} (a+b x)^n \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 22, normalized size = 1.00 \begin {gather*} \log (x) (-a-b x)^{-n} (a+b x)^n \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.05, size = 25, normalized size = 1.14 \begin {gather*} \log (-b x) (-a-b x)^{-n} (a+b x)^n \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 2.05, size = 7, normalized size = 0.32 \begin {gather*} \cos \left (\pi n\right ) \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {{\left (b x + a\right )}^{n}}{{\left (-b x - a\right )}^{n} x}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.04, size = 56, normalized size = 2.55 \begin {gather*} \left (b x +a \right )^{n} {\mathrm e}^{-\left (i \pi \mathrm {csgn}\left (i \left (b x +a \right )\right )^{3}-i \pi \mathrm {csgn}\left (i \left (b x +a \right )\right )^{2}+\ln \left (b x +a \right )+i \pi \right ) n} \ln \relax (x ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.86, size = 6, normalized size = 0.27 \begin {gather*} \left (-1\right )^{n} \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.05 \begin {gather*} \int \frac {{\left (a+b\,x\right )}^n}{x\,{\left (-a-b\,x\right )}^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 6.68, size = 44, normalized size = 2.00 \begin {gather*} \begin {cases} e^{- i \pi n} \log {\left (-1 + \frac {b \left (\frac {a}{b} + x\right )}{a} \right )} & \text {for}\: \left |{\frac {b \left (\frac {a}{b} + x\right )}{a}}\right | > 1 \\e^{- i \pi n} \log {\left (1 - \frac {b \left (\frac {a}{b} + x\right )}{a} \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________